<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:62:"F:\www\homestay\public/../application/admin\view\room\add.html";i:1544025581;s:58:"F:\www\homestay\application\admin\view\layout\default.html";i:1536636085;s:55:"F:\www\homestay\application\admin\view\common\meta.html";i:1536636085;s:57:"F:\www\homestay\application\admin\view\common\script.html";i:1536636085;}*/ ?>
<!DOCTYPE html>
<html lang="<?php echo $config['language']; ?>">
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>
    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !$config['fastadmin']['multiplenav']): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style>
    .device-box{
        list-style-type: none;
    }
    .device-box li{
        min-width: 90px;
        text-align: left;
        float: left;
    }
    .device-box li label{font-weight: normal;}
</style>
<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="title" class="control-label col-xs-12 col-sm-2">房间标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="title" name="row[title]" value="" data-rule="required;title" />
        </div>
    </div>
    <div class="form-group">
        <label for="description" class="control-label col-xs-12 col-sm-2">房间描述:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea  class="form-control" id="description" name="row[description]"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">地理位置:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="col-xs-12">
                <div class="form-group">
                    <label for="location" class="control-label col-xs-12 col-sm-2">位置:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" id="location" name="location" placeholder="位置" readonly="readonly"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">坐标:</label>
                    <div class="col-xs-12 col-sm-10">
                        <div class="col-xs-6">
                            <input placeholder="经度" class="form-control" id="map_longitude" name="map_longitude" readonly="readonly" style="padding-left: 0;"/>
                        </div>
                        <div class="col-xs-6">
                            <input placeholder="纬度" class="form-control" id="map_latitude" name="map_latitude" readonly="readonly" style="padding-right: 0;"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <button type="button" class="btn btn-primary" id="map-btn">编辑地理位置</button>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">设施:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="device-box">
                <?php if(is_array($devices) || $devices instanceof \think\Collection || $devices instanceof \think\Paginator): if( count($devices)==0 ) : echo "" ;else: foreach($devices as $key=>$vo): ?>
                <li><label><input type="checkbox" name="device" value="<?php echo $vo['id']; ?>" id="device_<?php echo $vo['id']; ?>" /> <?php echo $vo['title']; ?></label></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">电器:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="device-box">
                <?php if(is_array($homes) || $homes instanceof \think\Collection || $homes instanceof \think\Paginator): if( count($homes)==0 ) : echo "" ;else: foreach($homes as $key=>$vo): ?>
                <li><label><input type="checkbox" name="home" value="<?php echo $vo['id']; ?>" id="home_<?php echo $vo['id']; ?>" /> <?php echo $vo['title']; ?></label></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">卫浴:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="device-box">
                <?php if(is_array($bathrooms) || $bathrooms instanceof \think\Collection || $bathrooms instanceof \think\Paginator): if( count($bathrooms)==0 ) : echo "" ;else: foreach($bathrooms as $key=>$vo): ?>
                <li><label><input type="checkbox" name="bathroom" value="<?php echo $vo['id']; ?>" id="bathroom_<?php echo $vo['id']; ?>" /> <?php echo $vo['title']; ?></label></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">服务:</label>
        <div class="col-xs-12 col-sm-8">
            <ul class="device-box">
                <?php if(is_array($services) || $services instanceof \think\Collection || $services instanceof \think\Paginator): if( count($services)==0 ) : echo "" ;else: foreach($services as $key=>$vo): ?>
                <li><label><input type="checkbox" name="service" value="<?php echo $vo['id']; ?>" id="service_<?php echo $vo['id']; ?>" /> <?php echo $vo['title']; ?></label></li>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
    </div>



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo build_radios('row[is_close]', ['0'=>'开启', '1'=>'关闭']); ?>
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled"><?php echo __('OK'); ?></button>
            <button type="reset" class="btn btn-default btn-embossed"><?php echo __('Reset'); ?></button>
        </div>
    </div>
</form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo $site['version']; ?>"></script>
    </body>
</html>